package com.bw.router.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.tencent.mmkv.MMKV

/**
 * 提供服务的具体实现
 */
@Route(path = "/provider/token")
class RouterProviderImp:IRouterProvider {
    override fun getLoginToken(): String {
        var tokenStr=MMKV.defaultMMKV().decodeString("token",null)
        if(tokenStr.isNullOrEmpty()){
            return ""
        }
        return tokenStr
    }

    override fun init(context: Context?) {

    }

}